﻿using System.Collections;
using System.Collections.Generic;
using PPI.ServiceLogic.Distribution;
using PPI.ServiceLogic;
using PPI.Entities;

namespace PPI.ServiceLogic.Mobile
{
    public class LFillMobileTableDistribution : LFillMobileTablesBase
    {
        public List<int> VendorProjectIdsToFilter = new List<int>();

        public LFillMobileTableDistribution(string connectionKey, string mobileConnectionString, EUtility utility)
            : base(connectionKey, mobileConnectionString)
        {
            m_ListTables.Clear();
            
            m_ListTables.Add(new LInspector());
            m_ListTables.Add(new LCompany());
            m_ListTables.Add(new LMap());
            m_ListTables.Add(new LPhase());
            m_ListTables.Add(new LTop());
            m_ListTables.Add(new LNote());
            m_ListTables.Add(new LDistributionResultType());
            m_ListTables.Add(new LInspectionType());
            m_ListTables.Add(new Distribution.LXMissionStructures_PoleSpecies());
            m_ListTables.Add(new Distribution.LXMissionStructures_PoleClass());
            m_ListTables.Add(new LLength());
            m_ListTables.Add(new Distribution.LXMissionStructures_PoleTreatments());
            m_ListTables.Add(new LMeterNote());
            m_ListTables.Add(new LDistributionLookup());

            var LProject = new LVendor_Project();
            LProject.Vendor_ProjectIdsToFilter = VendorProjectIdsToFilter;

            m_ListTables.Add(LProject);
            m_ListTables.Add(new LVendor_Contacts());

            var s = new LSettings();
            s.Utility = utility;
            m_ListTables.Add(s);
        }
    }
}
